5. Where the secretary is a candidate for the office of president, he shall be replaced by one of the assistant secretaries who shall acquire all the rights and assume all the obligations of the secretary respecting the holding of the election. The assistant secretary shall fulfil that duty until he has written his initials on the seals in accordance with the second paragraph of section 25.